package {{basePackage}}.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
{{#each importTypes}}
import {{this}};
{{/each}}

/**
 * {{tableComment}} 实体类
 * 
 * @author {{author}}
 * @version {{version}}
 * @since {{createTime}}
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("{{tableName}}")
public class {{entityName}} implements Serializable {

    private static final long serialVersionUID = 1L;

    {{#each fields}}
    /**
     * {{comment}}
     */
    {{#if isPrimaryKey}}
    @TableId(value = "{{columnName}}", type = IdType.{{idType}})
    {{else}}
    @TableField("{{columnName}}")
    {{/if}}
    {{#if isLogicDelete}}
    @TableLogic
    {{/if}}
    private {{javaType}} {{fieldName}};

    {{/each}}
}
